package com.sanmu.shop.util;
/** 
* @ClassName: ResultEnum 
* @Description: 返回状态枚举类 
* @author lilj
* @date 2018年4月15日 下午11:11:30 
*/
public enum ResultEnum {
	
	UNKNOWN_ERROR("-1", "未知错误"),
	
	SUCCESS("0000", "成功"),
	
	PARAM_ERROR("2001", "参数不合法"),
	
    DATABASE_ERROR("7001", "数据库异常");
	
	
	private String code;
	private String message;
	
	ResultEnum(String code, String message) {
		this.code = code;
		this.message = message;
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
}
